<template>
    <div>
        <h1>{{ num }}</h1>
    </div>
</template>

<script>
export default {
    name: 'two',
    setup() {
        const store = useStore();
        const num = store.state.num;
        return {
            num
        };
    },
};
</script>